package com.ruoyi.applet.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 购物车对象 cart
 * 
 * @author ruoyi
 * @date 2024-12-04
 */
public class Cart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车唯一标识 */
    private Long cartId;

    /** 商品id外键 */
    @Excel(name = "商品id外键")
    private Long goodsId;

    /** 用户外键 */
    @Excel(name = "用户外键")
    private Long userId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long buyNum;

    /** 所选商品规格属性 */
    @Excel(name = "所选商品规格属性")
    private Long proSpescId;

    /** 是否选中 */
    @Excel(name = "是否选中")
    private String isChecked;

    public void setCartId(Long cartId) 
    {
        this.cartId = cartId;
    }

    public Long getCartId() 
    {
        return cartId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBuyNum(Long buyNum) 
    {
        this.buyNum = buyNum;
    }

    public Long getBuyNum() 
    {
        return buyNum;
    }
    public void setProSpescId(Long proSpescId) 
    {
        this.proSpescId = proSpescId;
    }

    public Long getProSpescId() 
    {
        return proSpescId;
    }
    public void setIsChecked(String isChecked) 
    {
        this.isChecked = isChecked;
    }

    public String getIsChecked() 
    {
        return isChecked;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cartId", getCartId())
            .append("goodsId", getGoodsId())
            .append("userId", getUserId())
            .append("buyNum", getBuyNum())
            .append("proSpescId", getProSpescId())
            .append("isChecked", getIsChecked())
            .toString();
    }
}
